<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title>合同详情</title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %> 
    <!--[if lt IE 9]>
        <script src="lib/js/html5shiv.min.js"></script>
        <script src="lib/js/respond.min.js"></script>
    <![endif]-->
     <style type="text/css">
.text-left {color:#848484;}

</style>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1>合同详情</h1>
        <ol class="breadcrumb">
            <li><a href=""${ctx}/home.jsp""><i class="fa fa-home"></i>首页</a></li>
            <li class="active"><a href="#">合同管理</a></li>
            <li class="active"><a href="#">合同查看</a></li>
            <li class="active"><a href="#">合同详情</a></li>
        </ol>
    </section>
    <section class="content">
        <div class=" box box-success">
            <!-- form start -->
            <form role="form" class="form-horizontal" action="bakDrugList.jsp" method="post">
                <div class="box-body">
                    <div class="form-group form-group-xs">
                        <label for="contractName" class="col-sm-2 text-right">合同名称：</label>
                        <div class="col-sm-3 text-left">${contract.contractTitle}</div>
                        <label for="project" class="col-sm-3 text-right">所属项目：</label>
                        <div class="col-sm-3 text-left">${projName }</div>
                    </div>
                    <div class="line"></div>
                     <div class="form-group form-group-xs">
                        <label for="partyA" class="col-sm-2 text-right">合同甲方：</label>
								<div class="col-sm-9 text-left">${contractPartyA}</div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="partyB" class="col-sm-2 text-right">合同乙方：</label>
                            <c:forEach items="${contractPartyBNames}" var="partyName">
								<div class="col-sm-9 text-left">${partyName}</div>
							</c:forEach>
                    </div>
                    <div class="line"></div>
                     <div class="form-group form-group-xs">
                        <label for="" class="col-sm-2 text-right" style="float:left;">合同药品：</label>
                        <div class="col-sm-9 text-left">
                             <c:forEach items="${drugList}" var="drug">
								<div class="col-sm-9 text-left" >${drug.name}</div>
							</c:forEach>
						</div>
                    </div>
                    <div class="line"></div> 
                     <div class="form-group form-group-xs">
                        <label for="updUser" class="col-sm-2 text-right">更新人：</label>
                        <div class="col-sm-3 text-left">${contract.updUser }</div>
                        <label for="updDatetime" class="col-sm-3 text-right">更新时间：</label>
                        <div class="col-sm-3 text-left">${updDatetime }</div>
                    </div>
                    <div class="line"></div> 
                     <div class="form-group form-group-xs">
                        <label for="auditUser" class="col-sm-2 text-right">审核人：</label>
                        <div class="col-sm-3 text-left">${contract.auditUser }</div>
                        <label for="audtiDatetime" class="col-sm-3 text-right">审核时间：</label>
                        <div class="col-sm-3 text-left">${auditDatetime}</div>
                    </div>
                    <div class="line"></div> 
                    <div class="form-group form-group-xs">
                        <label for="hospName" class="col-sm-2 text-right">审核状态：</label>
                        <div class="col-sm-3 text-left">${auditStatus }</div>
                    </div>
                    <div class="line"></div>
                     <div class="form-group form-group-xs">
                        <label for="hospName" class="col-sm-2 text-right">审核备注：</label>
                        <div class="col-sm-3 text-left">${contract.auditRemark }</div>
                    </div>
                     <div class="line"></div> 
	                <div id="documentviewer" class="flexpaper_viewer" style="margin-left:150px;width:800px;height:700px;display:block">Document loading..
	                </div>  
                </div>
                
            </form>
        </div>
        <div class=" box box-warning bottongroup">
                    <a onclick ="back()" class="btn btn-danger btn-sm">返&nbsp;回</a>
                </div>
    </section>
      <%@ include file="/WEB-INF/component/commonJS.jsp" %>  
      <script src="${ctx}/lib/js/flexpaper.js"></script>
    <script type="text/javascript">
    $('#documentviewer').FlexPaperViewer(
			{
				config: {
					SWFFile:"${ctx}/${contract.swfFilePath}",
					Scale:1,
					ZoomTransition:'easeOut',
					ZoomTime:0.50,
					ZoomInterval:0.2,
					FitPageOnLoad:true,
					FitPageWidthOnLoad:true,
					FullScreenAsMaxWindow:false,
					ProgressiveLoading:true,
					MinZoomSize:0.5,
					MaxZoomSize:2,
					SearchMatchAll:false,
					InitViewMode:'TwoPage',
					RederingOrder:'pdf',
					StartAtPage:'',
					ViewModeToolsVisible:true,
					ZoomToolsVisible:true,
					NavToolsVisible:true,
					CursorToolsVisible:false,
					SearchToolsVisible:true,
					WMode : 'window',
					localeChain:'zh_CN'
				}
			})
    	function back(){
        	window.location.href="${ctx}/contractSC/toBidContractListSC.html"
        }
    $(function(){
    })
        
    </script>
</body>
</html>
